extend travis cache expiration date. (#510)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Wed, 19 Feb 2020 20:35:59 +0000 (13:35 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Feb 2020 20:35:59 +0000 (13:35 -0700)
.travis.yml
tools/travis_install_linux_local
tools/travis_install_osx

index 9beed895bb043c72fa3a76b7f5acef509a19b51c..489fc5b7a4c648f92e983c02b043c6109ab8da68 100644 (file)
@@ -3,7 +3,7 @@ language: cpp
 matrix:
   include:
     - os: linux
-      dist: xenial
+      dist: bionic
       sudo: required
       services: docker
       compiler: gcc
@@ -11,7 +11,7 @@ matrix:
         - BUILD_TYPE="docker"
         - DOCKER_IMG="qtio"
     - os: linux
-      dist: xenial
+      dist: bionic
       sudo: required
       services: docker
       compiler: clang
@@ -19,7 +19,7 @@ matrix:
         - BUILD_TYPE="docker"
         - DOCKER_IMG="qtio"
     - os: linux
-      dist: xenial
+      dist: bionic
       sudo: required
       services: docker
       compiler: gcc
index 65b5e83b7ce94b1bbfbb0724ff73bca5c0cc813d..82d419881dac36033e4bc587d2fd94fbb567a63e 100755 (executable)
@@ -38,6 +38,14 @@ if [ -d "${QTDIR}/bin" ]; then
   echo "Using cached Qt."
   echo "If you need to clear the cache see"
   echo "https://docs.travis-ci.com/user/caching/#Fetching-and-storing-caches."
+  if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
+    # the cache is being used.  modify it to reset expiration date.
+    date > ${CACHEDIR}/timestamp
+  fi
+  if [ -f "${CACHEDIR}/timestamp" ]; then
+    echo -n "Cache timestamp: "
+    cat "${CACHEDIR}/timestamp"
+  fi
 else
   rm -fr ${CACHEDIR}
   mkdir -p ${CACHEDIR}
index 1c7368007ee8e0fa34e048a103cd69c492cf7297..26c4d6b035fc5ccf2786c5342368068748b04203 100755 (executable)
@@ -38,6 +38,14 @@ if [ -d "${QTDIR}/bin" ]; then
   echo "Using cached Qt."
   echo "If you need to clear the cache see"
   echo "https://docs.travis-ci.com/user/caching/#Fetching-and-storing-caches."
+  if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
+    # the cache is being used.  modify it to reset expiration date.
+    date > ${CACHEDIR}/timestamp
+  fi
+  if [ -f "${CACHEDIR}/timestamp" ]; then
+    echo -n "Cache timestamp: "
+    cat "${CACHEDIR}/timestamp"
+  fi
 else
   rm -fr ${CACHEDIR}
   mkdir -p ${CACHEDIR}